package com.lsf.studentmanagerup.dao;

import com.lsf.studentmanagerup.bean.ClassBean;
import com.lsf.studentmanagerup.bean.Student;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

/**
 * 班级表数据库 访问层
 *
 * @author 李树飞
 */
public interface ClassBeanDao {
    //根据班号查找班级
    ClassBean getClassBeanById(String id) throws SQLException;

    //根据查询条件获取班级列表
    List<ClassBean> getClassBeanByCondition(Map<String, String> condition) throws SQLException;

    //增加班级
    int addClassBean(ClassBean classBean) throws SQLException;

    //删除班级
    int removeClassBeanById(int id) throws SQLException;

    //修改班级
    int updateClassBeanById(ClassBean classBean) throws SQLException;
}
